{literal}
<script type="text/javascript" language="JavaScript">
function showcategorias(d1,d2) {
document.getElementById(d1).style.display = "block";
document.getElementById(d2).style.display = "none";
}

function masmercados() {
	if(document.getElementById('tabla_1000').style.display == "block"){
		showcategorias('tabla_plus_1000','tabla_plus_1001');
		showcategorias('subtabla_plus_1000','subtabla_plus_1001');
	} else {
		showcategorias('tabla_plus_1001','tabla_plus_1000');
		showcategorias('subtabla_plus_1001','subtabla_plus_1000');
	}
}
function menosmercados() {
	document.getElementById('tabla_plus_1000').style.display = "none";
	document.getElementById('subtabla_plus_1000').style.display = "none";
	document.getElementById('tabla_plus_1001').style.display = "none";
	document.getElementById('subtabla_plus_1001').style.display = "none";
}

function imagenboton(boton1,imagen1){
	document.getElementById(boton1).src = "layout_images/new/" + imagen1;
}
</script>
{/literal}
<table cellpadding="0" cellspacing="0" width="100%" border="0">
    <tr><td><img src="layout_images/new/clasificados.jpg" alt="Clasificados" title="Clasificados" /></td></tr>
    <tr><td height="46" align="center">
    	<img src="layout_images/new/boton-venta-on.jpg" id="boton-venta" alt="Venta" title="Venta" align="absmiddle" hspace="1" style="cursor:pointer" onclick="showcategorias('tabla_1000','tabla_1001');showcategorias('subtabla_1000','subtabla_1001');imagenboton('boton-venta','boton-venta-on.jpg');imagenboton('boton-alquiler','boton-alquiler.jpg');menosmercados()" />
    	<img src="layout_images/new/boton-alquiler.jpg" id="boton-alquiler" alt="Alquiler" title="Alquiler" align="absmiddle" hspace="1" style="cursor:pointer" onclick="showcategorias('tabla_1001','tabla_1000');showcategorias('subtabla_1001','subtabla_1000');imagenboton('boton-venta','boton-venta.jpg');imagenboton('boton-alquiler','boton-alquiler-on.jpg');menosmercados()" />
    </td></tr>
    <tr><td>
    	{php}echo(categorias_home('Venta ',1000)){/php}
    	{php}echo(categorias_home('Alquiler ',1001)){/php}
    </td></tr>
    <!--<tr><td align="right" style="padding-right:10px;"><a href="javascript:masmercados();"><img src="layout_images/new/mas-mercados.jpg" alt="Ver + Mercados" title="Ver + Mercados" border="0" /></a></td></tr>-->
    <tr><td align="left" style="padding-top:20px; padding-bottom:10px;"><img src="layout_images/new/tit_categorias.jpg" alt="Categorias" title="Categorias" /></td></tr>
    <tr><td>
    	{php}echo(categorias_home_sub('Venta ',1000)){/php}
    	{php}echo(categorias_home_sub('Alquiler ',1001)){/php}
    </td></tr>
    <tr><td align="left">
            {php}echo(suscripcion()){/php}
    </td></tr>
</table>


